/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.hcbank.sessionbeans;

import com.hcbank.bussiness.AccountController;
import com.hcbank.classes.Account;
import java.util.List;
import javax.ejb.Stateless;

/**
 *
 * @author NHAHV
 */
@Stateless
public class AccountSessionBean implements AccountSessionBeanRemote {
    AccountController controller = new AccountController();
    @Override
    public Account ATMLogin(String Number, String PIN) {
        Account ATMLogin = controller.ATMLogin(Number, PIN);
        return ATMLogin;
    }

    @Override
    public List<Account> GetAllAccount() {
       return controller.GetAllAccounts();
    }

    @Override
    public Account AddAccount(Account acc) {
        return controller.AddAccount(acc);
    }

    @Override
    public Account UpdateAccount(Account account) {
        return controller.UpdateAccount(account);
    }

    @Override
    public boolean DeleteAccount(int primaryKey) {
        return controller.DeleteAccount(primaryKey);
    }


    
    
    
    
    
    
    
    
    
}
